import $V from './$V';

export default function forceIndex(price, volume) {
    let ForceIndexValue = $V.init(price.length,0);
    return $V.copy_by_index(ForceIndexValue,1,$V.mul($V.subv(volume,1,volume.length),$V.sub($V.subv(price,1,price.length),$V.subv(price,0,price.length-1))));
}
